package cn.eid.service.kingeid;


import android.os.Parcel;
import android.os.Parcelable;

/**
 * 结果参数对象
 */
public class RespParams implements Parcelable {
    private long resultCode;
    private String resultDetail;
    public RespParams() {
    }

    public RespParams(long resultCode, String resultDetail) {
        super();
        this.resultCode = resultCode;
        this.resultDetail = resultDetail;
    }

    protected RespParams(Parcel in) {
        resultCode = in.readLong();
        resultDetail = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(resultCode);
        dest.writeString(resultDetail);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<RespParams> CREATOR = new Creator<RespParams>() {
        @Override
        public RespParams createFromParcel(Parcel in) {
            return new RespParams(in);
        }

        @Override
        public RespParams[] newArray(int size) {
            return new RespParams[size];
        }
    };

    public long getResultCode() {
        return resultCode;
    }

    public void setResultCode(long resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultDetail() {
        return resultDetail;
    }

    public void setResultDetail(String resultDetail) {
        this.resultDetail = resultDetail;
    }

}
